<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('结项弹窗')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-activity-end" th:object="${vtspActivity}">
            <div class="form-group">
                <label class="col-sm-4 control-label">活动编号：</label>
                <div class="col-sm-7">
                    <input class="form-control" type="text" readonly th:field="*{activityId}"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-4 control-label">活动名称：</label>
                <div class="col-sm-7">
                    <input class="form-control" type="text" readonly th:field="*{activityName}"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-4 control-label">结项方式：</label>
                <div class="col-sm-7">
                    <select class="form-control m-b" name="activityState">
                        <option value="6">结项</option>
                        <option value="4">暂停</option>
                        <option value="5">作废</option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "vtsp/publish"
        $("#form-activity-end").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/end", $('#form-activity-end').serialize());
            }
        }

    </script>
</body>
</html>
